<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"> <i class="icon-font"></i>
                <a href="/Admin">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">用户管理</span>
            </div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="" method="get">
                    <table class="search-tab">
                        <tr>
                    <!--         <th width="120">选择分类:</th>
                            <td>
                                <select name="search" id="">
                                    <option value="">全部</option>
                                    <foreach name="Tarr" item="vo">
                                    <option value="{$vo.tid}">{$vo.tname}</option>
                                    </foreach>
                                </select>
                            </td> -->
                            <th width="70">关键字:</th>
                            <td>
                                <input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td>
                                <input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%">
                                <input class="allChoose" name="" type="checkbox"></th>
                            <th>ID</th>
                            <th>昵称</th>
                            <th>真实姓名</th>
                            <th>性别</th>
                            <th>身份证号</th>
                            <th>电话</th>
                            <th>注册时间</th>
                            <th>交易记录</th>
                            <!-- <th>邀请收益</th> -->
                            <!-- <th>计划条款</th> -->
                            <!-- <th>加入人数</th> -->
                            <th>操作</th>
                        </tr>
                        <foreach name="Uarr" item="vo">
                        <tr>
                            <td class="tc">
                                <input name="id[]" value="58" type="checkbox"></td>
                            <!--                             <td>
                            <input name="ids[]" value="58" type="hidden">
                            <input class="common-input sort-input" name="ord[]" value="0" type="text"></td>
                        -->
                        <td>{$vo.id}</td>
                        <td>{$vo.username}</td>

                        <if condition="($vo.realname neq '') ">    <td>{$vo.realname}</td>
                        <else /> <td style="color:green">未实名认证</td>
                        </if>
                     
                        <if condition="($vo.sex eq 0)"> <td>女</td>
                        <else /> <td>男</td>
                        </if>
                        <td>{$vo.userid}</td>
                        <td>{$vo.tel}</td>
                        <td>{$vo.createtime}</td>
                        <td><a href="__URL__/userjilu/user/{$vo.id}">交易详情</a></td>
<!--                    <if condition="($vo.status eq 0)"> <td>准备</td>
                        <elseif condition="$vo.status eq 1"/><td>开放</td>
                        <else /> <td>结束</td>
                        </if> -->
                        <!-- <td>{$vo.shou}</td> -->
                        <td>
                            <a class="link-update" href="{:U('Admin/User/userinfo/id/'.$vo['id'])}">详情</a>
                            <a class="link-del" href="javascript:del({$vo['jid']})">拉黑</a>
                        </td>
                    </tr>
                    </foreach>
                </table>
                <div class="list-page">{$page}</div>
            </div>
        </form>
    </div>
</div>

<!--/main-->
<script type="text/javascript">
function del(id) {
    if(confirm("执行后将无法恢复，确定继续吗？温馨提示"))
            {
        $.post('__URL__/delete', {'sid':id}, function(data){
           alert(data);
           location.reload([true])  
        });
        exit;
        }
    }
</script>
</block>